package com.ftg.learn.chapter14.guanxi;

public class Human {
    private String name;
    private char sex;
    private int age;

    @Override
    public String toString(){
        return "姓名："+ this.getName()+";性别："+this.getSex()+";年龄："+
                this.getAge()+"；身份证号为："+this.getId().getCardNo();
    }
    /**
     * 身份证
     */
    private idCard id;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public idCard getId() {
        return id;
    }

    public void setId(idCard id) {
        this.id = id;
    }
}
